<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="/public/hui/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/public/hui/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/public/hui/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/public/hui/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/public/hui/static/h-ui.admin/css/style.css" />
<title>CI 后台框架系统 权限管理</title>
</head>
<body>
<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/">H-ui.admin</a> <span class="logo navbar-slogan f-l mr-10 hidden-xs">v3.0</span>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<li>你好：</li>
					<li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A"><?=$account;?> <i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="/administrator">个人信息</a></li>
							<li><a href="#">切换账户</a></li>
							<li><a href="#">退出</a></li>
						</ul>
					</li>
					<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>
					<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>
<aside class="Hui-aside">
    <div class="menu_dropdown bk_2">
        <? foreach($menus as $k => $v):?>
            <dl>
                <dt><i class="Hui-iconfont"><?=$v['m_icon']?></i> <?=$v['m_name']?><i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                </dt>
                <dd>
                    <ul>
                        <? foreach($v['arr'] as $kk => $vv):?>
                            <li class="<?=$vv['c_func'];?>">
                                <a href="/<?=$vv['c_route']?>" title="系统设置"><?=$vv['c_name']?></a>
                            </li>
                        <? endforeach;?>
                    </ul>
                </dd>
            </dl>
        <? endforeach;?>
    </div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
	<nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 权限管理
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
		<div class="pd-20 text-c">
			<div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="l">
                    <a class="btn btn-primary radius" onclick="_add('添加角色','/Systems/authority_add','600','500')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加权限</a>
                </span>
                <span class="r">共有数据：<strong><?=count($list);?></strong> 条</span> </div>
			<div class="mt-20">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>
						<tr class="text-c">
                            <th>
                                ID
                            </th>
                            <th>
                                权限名称
                            </th>
                            <th>
                                所属模块
                            </th>
                            <th>
                                所属分类
                            </th>
                            <th>
                                权限代码
                            </th>
                            <th>
                                操作
                            </th>
						</tr>
					</thead>
					<tbody>
                    <? foreach($list as $vo):?>
                    <tr class="text-c">
                        <td>
                            <?=$vo['id']?>
                        </td>
                        <td>
                            <?=$vo['name']?>
                        </td>
                        <td>
                            <?=$vo['m_name']?>
                        </td>
                        <td>
                            <?=$vo['c_name']?>
                        </td>
                        <td>
                            <?=$vo['code']?>
                        </td>
                        <td class="td-manage">
                            <a title="编辑" href="javascript:;" onclick="_edit('编辑','/Systems/authority_edit?id=<?=$vo["id"]?>','600','400')" class="ml-5" style="text-decoration:none">
                                <i class="Hui-iconfont">&#xe6df;</i>
                            </a>&nbsp;
                            <a title="删除" href="javascript:;" onclick="_del(this,'/Systems/authority_del','<?=$vo["id"]?>')" style="text-decoration:none">
                                <i class="Hui-iconfont">&#xe6e2;</i>
                            </a>
                        </td>
                    </tr>
                    <? endforeach;?>
					</tbody>
				</table>
			</div>
		</div>
</section>

<script type="text/javascript" src="/public/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/public/lib/layer/layer.js"></script>
<script type="text/javascript" src="/public/hui/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="/public/hui/static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="/public/hui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/public/hui/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/public/admin.js"></script>
<script type="text/javascript">

    var menu = "<?=$function;?>";
    if(menu){
        $('.'+menu).addClass('current').parent().addClass('opened').parent().addClass('open').before().addClass('selected');
        setTimeout(function(){
            $('.'+menu).parent().siblings('a').find('.nav_right').html('&#xe61a;');
        },100);
    }

    $('.table-sort').dataTable({
        "aaSorting": [[ 0, "asc" ]],//默认第几个排序
        "bStateSave": false,//状态保存
        "aoColumnDefs": [
          //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
          {"orderable":false,"aTargets":[1,2,3,4]}// 制定列不参与排序
        ]
    });
</script>
</body>
</html>